# Copyright 2004 PAFSoft S.A.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Pascal Fleury <fleury@users.sourceforge.net>
# $Header:$

S="${WORKDIR}/${P}-src"
DESCRIPTION="Qt-based GUI to subversion."
SRC_URI="http://subcommander.tigris.org/files/documents/1759/18888/${P}-src.tgz"
HOMEPAGE="http://subcommander.tigris.org"
LICENSE="GPL-2"

KEYWORDS="x86"

DEPEND=">=qt-3.0
	>=subversion-1.0.9
	>=xerces-c-2.6.0
	>=libpathan-1.2.2
	>=apr-0.9.2"

src_compile() {
	# Apparently, the script cannot figure anything out on its own...
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--with-apr=/usr/bin/apr-config \
		--with-apr-util=/usr/bin/apu-config \
		--with-Qt-dir=/usr/qt/3 \
		--with-subversion=/usr \
		--with-subversion-source=/usr \
		--with-neon=/usr \
		--with-openssl=/usr \
		--with-xercesc=/usr \
		--with-pathan=/usr \
		--mandir=/usr/share/man || die "./configure failed"
	emake || die
}

src_install () {
	make DESTDIR=${D} install || die
	dodoc CHANGES INSTALL README
}
